package zsc.ruanc.practicaltraining.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 用户权限关联表
 */
@Data
public class TUserAuthority {


  @NotNull(message = "id不能为空")
  @Min(message = "id不能为小于0", value = 0)
  @ApiModelProperty(value = "id，自增主键", required = true, dataType = "int")
  private Integer id;

  @NotNull(message = "userId不能为空")
  @Min(message = "userId不能为小于0", value = 0)
  @ApiModelProperty(value = "关联用户的id", required = true, dataType = "int")
  private Integer userId;

  @NotNull(message = "authorityId不能为空")
  @Min(message = "authorityId不能为小于0", value = 0)
  @ApiModelProperty(value = "关联权限的id", required = true, dataType = "int")
  private Integer authorityId;




}
